package com.blog.dao;

import java.util.List;

import com.blog.model.Article;
import com.blog.model.ArticleWithBLOBs;

public interface ArticleMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(ArticleWithBLOBs record);

    int insertSelective(ArticleWithBLOBs record);

    String getResultNum();
    
    Integer getDbMdNum();
    
    List<ArticleWithBLOBs> checkExistTitle(String title);
    
    ArticleWithBLOBs selectByPrimaryKey(Integer id);
    
    List<ArticleWithBLOBs> selectByPage(Integer page);

    int updateByPrimaryKeySelective(ArticleWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ArticleWithBLOBs record);

    int updateByPrimaryKey(Article record);
    
    int increasePoint(Integer point,Integer id);
    
    List<ArticleWithBLOBs> selectBypopular();

	List<ArticleWithBLOBs> getCategoryArticle(String tag);
	
	List<ArticleWithBLOBs> getCategory();

	List<ArticleWithBLOBs> getwaterfall();
	
	List<ArticleWithBLOBs> getAllArticle();
	
	List<ArticleWithBLOBs> getDbMDList();
	
	public List<ArticleWithBLOBs> getSearchResult(String key);
}